package com.daxia.ogmall.dto;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.daxia.ogmall.model.Specification;

public class SpecificationDTO extends Specification {
	private List<String> imageList;

	public List<String> getImageList() {
		if (StringUtils.isBlank(getImages())) {
			return new ArrayList<String>();
		}
		imageList = new ArrayList<String>();
		String[] arr = getImages().split(",");
		for (String string : arr) {
			imageList.add(string);
		}
		return imageList;
	}

	public void setImageList(List<String> imageList) {
		this.imageList = imageList;
	}
	
}
